package auctionhaus

class ListingCreateService {

    def springSecurityService

    def createListing(params) {
        if(springSecurityService)
            params.seller = springSecurityService.currentUser
        def listingInstance = new Listing(params)
        listingInstance.save(flush: true)
        return listingInstance
    }
}
